<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>线程池: CMakeLists.txt 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">线程池<span id="projectnumber">&#160;1.0.0</span>
   </div>
   <div id="projectbrief">多线程并发工具</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">CMakeLists.txt 文件参考</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a533c034eb37853b2e9c22f707a6a4b3f" id="r_a533c034eb37853b2e9c22f707a6a4b3f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_make_lists_8txt.html#a533c034eb37853b2e9c22f707a6a4b3f">cmake_minimum_required</a> (VERSION 3.10) project(threads_pool VERSION 1.0.0 DESCRIPTION &quot;A thread pool implementation&quot;) <a class="el" href="_c_make_lists_8txt.html#a69007bd78b40496eb1baa55694318082">set</a>(CMAKE_C_STANDARD 11) <a class="el" href="_c_make_lists_8txt.html#a69007bd78b40496eb1baa55694318082">set</a>(CMAKE_C_STANDARD_REQUIRED ON) <a class="el" href="_c_make_lists_8txt.html#a69007bd78b40496eb1baa55694318082">set</a>(CMAKE_ARCHIVE_OUTPUT_DIRECTORY $</td></tr>
<tr class="separator:a533c034eb37853b2e9c22f707a6a4b3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69007bd78b40496eb1baa55694318082" id="r_a69007bd78b40496eb1baa55694318082"><td class="memItemLeft" align="right" valign="top">lib&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_make_lists_8txt.html#a69007bd78b40496eb1baa55694318082">set</a> (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY $</td></tr>
<tr class="separator:a69007bd78b40496eb1baa55694318082"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23200988425e55e3114a7447ca7ba927" id="r_a23200988425e55e3114a7447ca7ba927"><td class="memItemLeft" align="right" valign="top">bin&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_make_lists_8txt.html#a23200988425e55e3114a7447ca7ba927">include_directories</a> (${PROJECT_SOURCE_DIR}/inc) add_library(threads_pool STATIC $</td></tr>
<tr class="separator:a23200988425e55e3114a7447ca7ba927"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae74879db0190d47f8643e1e2a2dc30a9" id="r_ae74879db0190d47f8643e1e2a2dc30a9"><td class="memItemLeft" align="right" valign="top">lib src threads_pool c&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_make_lists_8txt.html#ae74879db0190d47f8643e1e2a2dc30a9">set_target_properties</a> (threads_pool PROPERTIES OUTPUT_NAME &quot;threads_pool&quot;) add_executable(threads_pool_test $</td></tr>
<tr class="separator:ae74879db0190d47f8643e1e2a2dc30a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad85e7082aed097b731f455d3bfb489ae" id="r_ad85e7082aed097b731f455d3bfb489ae"><td class="memItemLeft" align="right" valign="top">test threads_pool_test c&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_make_lists_8txt.html#ad85e7082aed097b731f455d3bfb489ae">target_link_libraries</a> (threads_pool_test threads_pool) install(TARGETS threads_pool ARCHIVE DESTINATION lib LIBRARY DESTINATION lib RUNTIME DESTINATION bin) install(FILES $</td></tr>
<tr class="separator:ad85e7082aed097b731f455d3bfb489ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca65dc3c861f57d21895ecd9f39bbef0" id="r_aca65dc3c861f57d21895ecd9f39bbef0"><td class="memItemLeft" align="right" valign="top">inc threads_pool h DESTINATION include&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_c_make_lists_8txt.html#aca65dc3c861f57d21895ecd9f39bbef0">enable_testing</a> () add_test(NAME threads_pool_test COMMAND $</td></tr>
<tr class="separator:aca65dc3c861f57d21895ecd9f39bbef0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="a533c034eb37853b2e9c22f707a6a4b3f" name="a533c034eb37853b2e9c22f707a6a4b3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a533c034eb37853b2e9c22f707a6a4b3f">&#9670;&#160;</a></span>cmake_minimum_required()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cmake_minimum_required </td>
          <td>(</td>
          <td class="paramtype">VERSION 3.&#160;</td>
          <td class="paramname"><em>10</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_c_make_lists_8txt_source.html">CMakeLists.txt</a> 第 <a class="el" href="_c_make_lists_8txt_source.html#l00001">1</a> 行定义.</p>

</div>
</div>
<a id="aca65dc3c861f57d21895ecd9f39bbef0" name="aca65dc3c861f57d21895ecd9f39bbef0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca65dc3c861f57d21895ecd9f39bbef0">&#9670;&#160;</a></span>enable_testing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">inc threads_pool h DESTINATION include enable_testing </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_c_make_lists_8txt_source.html">CMakeLists.txt</a> 第 <a class="el" href="_c_make_lists_8txt_source.html#l00046">46</a> 行定义.</p>

</div>
</div>
<a id="a23200988425e55e3114a7447ca7ba927" name="a23200988425e55e3114a7447ca7ba927"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23200988425e55e3114a7447ca7ba927">&#9670;&#160;</a></span>include_directories()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bin include_directories </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>${PROJECT_SOURCE_DIR}/</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_c_make_lists_8txt_source.html">CMakeLists.txt</a> 第 <a class="el" href="_c_make_lists_8txt_source.html#l00014">14</a> 行定义.</p>

</div>
</div>
<a id="a69007bd78b40496eb1baa55694318082" name="a69007bd78b40496eb1baa55694318082"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69007bd78b40496eb1baa55694318082">&#9670;&#160;</a></span>set()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">lib set </td>
          <td>(</td>
          <td class="paramtype">CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/&#160;</td>
          <td class="paramname"><em>lib</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_c_make_lists_8txt_source.html">CMakeLists.txt</a> 第 <a class="el" href="_c_make_lists_8txt_source.html#l00010">10</a> 行定义.</p>

</div>
</div>
<a id="ae74879db0190d47f8643e1e2a2dc30a9" name="ae74879db0190d47f8643e1e2a2dc30a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae74879db0190d47f8643e1e2a2dc30a9">&#9670;&#160;</a></span>set_target_properties()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">lib src threads_pool c set_target_properties </td>
          <td>(</td>
          <td class="paramtype">threads_pool PROPERTIES OUTPUT_NAME &quot;threads_pool&quot;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_c_make_lists_8txt_source.html">CMakeLists.txt</a> 第 <a class="el" href="_c_make_lists_8txt_source.html#l00024">24</a> 行定义.</p>

</div>
</div>
<a id="ad85e7082aed097b731f455d3bfb489ae" name="ad85e7082aed097b731f455d3bfb489ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad85e7082aed097b731f455d3bfb489ae">&#9670;&#160;</a></span>target_link_libraries()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">test threads_pool_test c target_link_libraries </td>
          <td>(</td>
          <td class="paramtype">threads_pool_test&#160;</td>
          <td class="paramname"><em>threads_pool</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_c_make_lists_8txt_source.html">CMakeLists.txt</a> 第 <a class="el" href="_c_make_lists_8txt_source.html#l00032">32</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2025年 九月 13日 星期六 03:22:59 , 为 线程池使用 &#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
